/*  1:   */ package nl.siegmann.epublib.viewer;
/*  2:   */ 
/*  3:   */ import java.awt.Container;
/*  4:   */ import java.awt.GridLayout;
/*  5:   */ import java.awt.event.ActionEvent;
/*  6:   */ import java.awt.event.ActionListener;
/*  7:   */ import java.awt.event.WindowAdapter;
/*  8:   */ import java.awt.event.WindowEvent;
/*  9:   */ import javax.swing.JButton;
/* 10:   */ import javax.swing.JDialog;
/* 11:   */ import javax.swing.JFrame;
/* 12:   */ import javax.swing.JLabel;
/* 13:   */ import javax.swing.JRootPane;
/* 14:   */ 
/* 15:   */ public class AboutDialog
/* 16:   */   extends JDialog
/* 17:   */ {
/* 18:   */   private static final long serialVersionUID = -1766802200843275782L;
/* 19:   */   
/* 20:   */   public AboutDialog(JFrame parent)
/* 21:   */   {
/* 22:25 */     super(parent, true);
/* 23:   */     
/* 24:27 */     super.setResizable(false);
/* 25:28 */     super.getContentPane().setLayout(new GridLayout(3, 1));
/* 26:29 */     super.setSize(400, 150);
/* 27:30 */     super.setTitle("About epublib");
/* 28:31 */     super.setLocationRelativeTo(parent);
/* 29:   */     
/* 30:33 */     JButton close = new JButton("Close");
/* 31:34 */     close.addActionListener(new ActionListener()
/* 32:   */     {
/* 33:   */       public void actionPerformed(ActionEvent e)
/* 34:   */       {
/* 35:36 */         AboutDialog.this.dispose();
/* 36:   */       }
/* 37:38 */     });
/* 38:39 */     super.getRootPane().setDefaultButton(close);
/* 39:40 */     add(new JLabel("epublib viewer"));
/* 40:41 */     add(new JLabel("http://www.siegmann.nl/epublib"));
/* 41:42 */     add(close);
/* 42:43 */     super.addWindowListener(new WindowAdapter()
/* 43:   */     {
/* 44:   */       public void windowClosing(WindowEvent e)
/* 45:   */       {
/* 46:45 */         AboutDialog.this.dispose();
/* 47:   */       }
/* 48:47 */     });
/* 49:48 */     pack();
/* 50:49 */     setVisible(true);
/* 51:   */   }
/* 52:   */ }


/* Location:           C:\Users\David\workspace\CosaRaraPorqueSi\main\epublib-tools-3.1.jar
 * Qualified Name:     nl.siegmann.epublib.viewer.AboutDialog
 * JD-Core Version:    0.7.0.1
 */